package com.sann.spring.service.impl;

import com.sann.spring.dao.IDao;
import com.sann.spring.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceImpl implements IService{

    public ServiceImpl(){
        System.out.println("ServiceImpl 无参构造执行");
    }

    @Autowired
    private IDao iDao;

    @Override
    public void save() {
        iDao.save();
    }
}
